package com.learner.pojo.exam;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
* @author ice2020x
* @Date: 2023/3/7
* @Description: 考试记录
**/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "exam_record")
public class ExamRecord implements Serializable {

    private static final long serialVersionUID = -1;

    /**
     * 主键 考试主键的id
     */
    @TableId(type = IdType.AUTO)
    private Integer recordId;

    /**
     * 考试用户id
     */
    private String userId;
    /**
     * 用户考试中的答案
     */
    private String userAnswers;

    /**
     * 考试过程中的信用截图
     */
    private String creditImgUrl;

    /**
     * 考试时间 2020-10-20
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date examTime;

    /**
     * 考试逻辑得分 69
     */
    private Integer logicScore;
    /**
     * 考试的id
     */
    private Integer examId;
    /**
     * 考试的题目id
     */
    private String questionIds;
    /**
     * 考试总得分  100
     */
    private Integer totalScore;
    /**
     * 考试错题id  1,2,3
     */
    private String errorQuestionIds;

}
